package com.fortune.dto.in.cOrderLogin;

import com.fortune.constants.PatternConstants;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.Pattern;

public class COrderLoginDto {
    @Pattern(regexp= PatternConstants.PHONE, message="手机号格式错误")
    @ApiModelProperty(required=true, example="手机号码")
    private String phone;
    @Pattern(regexp=PatternConstants.PASSWORD, message="密码格式错误")
    @ApiModelProperty(required=true, example="密码")
    private String password;
    public String getPhone() {
        return phone;
    }
    public void setPhone(String phone) {
        this.phone = phone;
    }
    public String getPassword() {
        return password;
    }
    public void setPassword(String password) {
        this.password = password;
    }
    @Override
    public String toString() {
        return "LotinDto [phone=" + phone + ", password=" + password + "]";
    }
}
